package com.qyhl.school.school.vlog;


import com.qyhl.webtv.commonlib.entity.school.SchoolThemeBean;
import com.qyhl.webtv.commonlib.entity.school.SchoolVlogBean;

import java.util.List;

public class SchoolVlogPresenter implements SchoolVlogContract.SchoolVlogPresenter {
    private SchoolVlogContract.SchoolVlogView mView;
    private SchoolVlogModel mModel;

    public SchoolVlogPresenter(SchoolVlogContract.SchoolVlogView mView) {
        this.mView = mView;
        this.mModel = new SchoolVlogModel(this);
    }

    @Override
    public void getList(int lastId, int lastBoost) {
        mModel.getList(lastId, lastBoost);
    }

    @Override
    public void getTheme() {
        mModel.getTheme();
    }

    @Override
    public void setList(List<SchoolVlogBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }

    @Override
    public void setTheme(List<SchoolThemeBean> beanList) {
        mView.setTheme(beanList);
    }
}
